package collection;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

public class ArrayToListDemo {
    public static void main(String[] args) {
        String[] arr = {"1","2","3","4"};
//        System.out.println(Arrays.asList(arr));
        List<String> list = new ArrayList<>(Arrays.asList(arr));
        list.add("5");
        System.out.println(Arrays.toString(arr));
        list.set(2,"55");
        System.out.println(list);
    }
}
